Page({
  data: {
    headerLayout: {
      title: "报名",
      paddingBottom: 7,
      back: true,
      backLevel: 3,
    },
    image: null,
  },
  showImage() {
    wx.previewImage({
        urls: [this.data.image],
      }
    )
  },
  onLoad: function (options) {
    this.setData({
      image: options["image"] ?? null,
      "headerLayout.backLevel": options["backLevel"] ? parseInt(options["backLevel"]) : 3
    })
    console.log(this.data.headerLayout);
  }
});
